package net.qujoy.java8.methodparam.second;

import net.qujoy.java8.domain.Apple;

/**
 * 苹果颜色是绿色的
 */
public class AppleGreenColorPredicate implements ApplePredicate {
    @Override
    public boolean test(Apple apple) {
        return "green".equals(apple.getColor());
    }
}
